package leetcode.code0214;

import leetcode.IDebug;
import leetcode.helper.HelpDebug;

public abstract class Solution214 implements IDebug {

	public abstract String shortestPalindrome(String s);

	@Override
	public void debug1() {
		String s = "aacecaaa";
		String e = "aaacecaaa";
		String r = this.shortestPalindrome(s);
		HelpDebug.compare(e, r);
	}

	@Override
	public void debug2() {
		String s = "abcd";
		String e = "dcbabcd";
		String r = this.shortestPalindrome(s);
		HelpDebug.compare(e, r);
	}

	@Override
	public void debug3() {
		String s = "abbacd";// (i+1)*2 - 1
		String e = "dcabbacd";
		String r = this.shortestPalindrome(s);
		HelpDebug.compare(e, r);
	}

	@Override
	public void debug4() {
		String s = "aabba";// (i+1)*2 - 1
		String e = "abbaabba";
		String r = this.shortestPalindrome(s);
		HelpDebug.compare(e, r);
	}

}
